<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="kr.cadis.clms.dao.LimitCashDao, kr.cadis.clms.model.LimitCash, java.util.List" %>    
<%
	LimitCashDao limitCashDao = new LimitCashDao();
	List<LimitCash> limitCashes = limitCashDao.selectAll();
%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<table border="1">
	<tr><th>일련번호</th><th>한도</th><th>시작일</th><th>만료일</th><th>수정</th><th>삭제</th></tr>
<%
	for(LimitCash limitCash : limitCashes) {
%>	
	<tr>
		<td><%= limitCash.getNo() %></td>
		<td><%= limitCash.getMoney() %></td>
		<td><%= limitCash.getStartDate() %></td>
		<td><%= limitCash.getFinishDate() %></td>
		<td><a href="Update.jsp?no=<%= limitCash.getNo() %>">수정</a></td>
		<td><a href="Delete.jsp?no=<%= limitCash.getNo() %>">삭제</a></td>
	</tr>
<%
	}
%>	
</table>
<br />
<a href="Insert.jsp">신규 설정</a>
</body>
</html>